package vip.finance.makemoney.common.utils;

import vip.finance.makemoney.entity.Stock;

/**
 * @author yangbin
 * @since 2023-02-15
 */
public class StockUtil {

    public static String getCompleteCode(Stock stock) {
        return stock.getMarket().equals("SH") || stock.getMarket().equals("SZ") ? stock.getMarket() + stock.getCode() : stock.getCode();
    }
}
